package com.qf.feign.api;

import com.baomidou.mybatisplus.plugins.Page;
import com.qf.entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@FeignClient(name = "shop-goods",path = "/goods")
public interface GoodsService {

    @RequestMapping("/getGoodsPage")
    public Page<Goods> getGoodsPage(Page<Goods> page);

    @RequestMapping("/addGoods")
    public Boolean addGoods(Goods goods);

    @RequestMapping("/getGoodsMap")
    Map<Integer, Goods> getGoodsMap(List<Integer> gidList);
}
